/**
 * @Copyright ®2015 Sinosoft Co. Ltd. All rights reserved.
 * 项目名称 : 网站服务平台
 * 创建日期 : 2017-09-13
 * 修改历史 :
 * 1. [2017-09-13]创建文件 by chenxin
 */
package com.gavinwind.uic.customer.dto;


import com.gavinwind.uic.customer.common.config.ENUM_ID_TYPE;
import com.gavinwind.uic.customer.common.model.Customer;
import com.sinosoft.platform.common.base.SinoBaseDTO;

import java.util.Date;

/**
 * 【客户主对象DTO】
 * @author chenxin
 * @date 2017-09-13 下午3:11 
 * @version V1.0
 */
public class CustomerSaveParam extends SinoBaseDTO {
    /** 客户ID */
    private Integer customerId;
    /** 客户编码 */
    private String customerCode;
    /** 客户姓名 */
    private String customerName;
    /** 客户性别 */
    private String gender;
    /** 客户商户来源 */
    private String mechantCode;
    /** 客户统一编号 */
    private String unionCustomerCode;
    /** 客户生日 */
    private Date birthday;
    /** 客户证件类型 */
    private String idType;
    /** 客户证件编码 */
    private String idNo;
    /** 客户邮箱 */
    private String email;
    /** 客户公司电话 */
    private String companyTelephone;
    /** 客户电话 */
    private String mobile;
    /** 客户职业 */
    private String occupation;
    /** 客户国籍 */
    private String cizizenShip;
    /** 客户证件有效期 */
    private Date idExpiredDate;
    /** 客户QQ */
    private String qqNum;
    /** 客户爱好 */
    private String hobby;

    /**
     * 转化为客户模型信息
     * @return
     */
    public Customer trans2CustomerModel(){
        Customer tCustomer = new Customer();
        tCustomer.setBirthday(this.birthday);
        tCustomer.setCompanyTelephone(this.companyTelephone);
        tCustomer.setCustomerCode(this.customerCode);
        tCustomer.setCustomerName(this.customerName);
        tCustomer.setEmail(this.email);
        tCustomer.setGender(this.gender);
        tCustomer.setHobby(this.hobby);
        tCustomer.setIdExpiredDate(this.idExpiredDate);
        tCustomer.setIdNo(this.idNo);
        tCustomer.setIdType( ENUM_ID_TYPE.getEnumByKey(this.idType));
        tCustomer.setMobile(this.mobile);
        tCustomer.setNationality(this.cizizenShip);
        tCustomer.setOccupationCode(this.occupation);
        tCustomer.setQqNum(this.qqNum);
        tCustomer.setSourceCode(this.mechantCode);
        tCustomer.setUnionCustomerCode(this.unionCustomerCode);
        return tCustomer;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getMechantCode() {
        return mechantCode;
    }

    public void setMechantCode(String mechantCode) {
        this.mechantCode = mechantCode;
    }

    public String getUnionCustomerCode() {
        return unionCustomerCode;
    }

    public void setUnionCustomerCode(String unionCustomerCode) {
        this.unionCustomerCode = unionCustomerCode;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCompanyTelephone() {
        return companyTelephone;
    }

    public void setCompanyTelephone(String companyTelephone) {
        this.companyTelephone = companyTelephone;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public String getCizizenShip() {
        return cizizenShip;
    }

    public void setCizizenShip(String cizizenShip) {
        this.cizizenShip = cizizenShip;
    }

    public Date getIdExpiredDate() {
        return idExpiredDate;
    }

    public void setIdExpiredDate(Date idExpiredDate) {
        this.idExpiredDate = idExpiredDate;
    }

    public String getQqNum() {
        return qqNum;
    }

    public void setQqNum(String qqNum) {
        this.qqNum = qqNum;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }
}
